﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace GRWL.BZSC.Common
{
    public static class EnumCommon
    {
        /// <summary>
        /// 通用选项类型
        /// </summary>
        public enum OptionType
        {
            /// <summary>
            /// 物料分类
            /// </summary>
            物料分类 = 1,
            供应商分类 = 2,
            客户分类 = 3,
            仓库分类,
            品牌类型,
            来源类型,
            检验类型,
            单位类型,
            工序类型,
            工资算法,
            工时单位,
            计价方式,
            单据分类,
            仓库单据,
            部门资料,
            加工类型,
            选项码
        }

        /// <summary>
        /// 编码规则类型
        /// </summary>
        public enum CodeRuleType
        {
            /// <summary>
            /// 单据编码
            /// </summary>
            Bill = 1,
            /// <summary>
            /// 其他编码
            /// </summary>
            Other
        }

        /// <summary>
        /// 单据类型
        /// </summary>
        public enum BillType
        {
            /// <summary>
            /// 报价单
            /// </summary>
            BJ,
            /// <summary>
            /// 采购申请单
            /// </summary>
            CGSQ,
            /// <summary>
            /// 采购单
            /// </summary>
            CG,
            /// <summary>
            /// 订货单
            /// </summary>
            DH,
            /// <summary>
            /// 生产单
            /// </summary>
            SCD,
            /// <summary>
            /// 销售单
            /// </summary>
            XS,
            /// <summary>
            /// 暂收单
            /// </summary>
            ZS,
            /// <summary>
            /// 领料单
            /// </summary>
            LL,
            /// <summary>
            /// 采购质检
            /// </summary>
            CGZJ,
            /// <summary>
            /// 生产质检
            /// </summary>
            SCZJ,
            /// <summary>
            /// 采购收货入库单
            /// </summary>
            CGSH,
            /// <summary>
            /// 生产收货
            /// </summary>
            SCSH,
            /// 自制产品入库单
            /// </summary>
            PI,
            /// <summary>
            /// 出库单
            /// </summary>
            CK,
            /// <summary>
            /// 请购单
            /// </summary>
            QG,
            /// <summary>
            /// 需求订单
            /// </summary>
            XQDD,
            /// <summary>
            /// 生产需求单
            /// </summary>
            SCXQ,
        }

        /// <summary>
        /// 订单类型
        /// </summary>
        public enum OrderTypes
        {
            /// <summary>
            /// 采购操作
            /// </summary>
            CG,
            /// <summary>
            /// 订货操作
            /// </summary>
            DH,
        }

        /// <summary>
        /// 产品工程序号类型
        /// </summary>
        public enum PrdtPrjtSerialNoType
        {
            /// <summary>
            /// 产品工序序号
            /// </summary>
            Workstage = 1,
            /// <summary>
            /// 工序所需元件序号
            /// </summary>
            Element
        }

        /// <summary>
        /// 产品工程提交状态
        /// </summary>
        public enum PrdtPrjtSubmitStatus
        {
            /// <summary>
            /// 未提交
            /// </summary>
            [Description("未提交")]
            未提交 = 0,
            /// <summary>
            /// 已提交
            /// </summary>
            [Description("已提交")]
            已提交,
            /// <summary>
            /// 作废
            /// </summary>
            [Description("作废")]
            作废
        }

        /// <summary>
        /// 产品工程审批状态
        /// </summary>
        public enum PrdtPrjtVerifyStatus
        {
            /// <summary>
            /// 未批准
            /// </summary>
            [Description("未批准")]
            未批准 = 0,
            /// <summary>
            /// 已批准
            /// </summary>
            [Description("已批准")]
            已批准,
            /// <summary>
            /// 作废
            /// </summary>
            [Description("作废")]
            作废
        }

        /// <summary>
        /// 需求计划类型
        /// </summary>
        public enum RequirementType
        {
            /// <summary>
            /// 生产需求
            /// </summary>
            SCXQ = 1,
            /// <summary>
            /// 采购需求
            /// </summary>
            CGXQ
        }

        /// <summary>
        /// 单据审批状态
        /// </summary>
        public enum VerifyStatus
        {
            未批 = 0,
            已批,
            退回,
            作废
        }
        public enum DepotIOStatus
        {
            /// <summary>
            /// 经采购（含质检）后收货入库操作
            /// </summary>
            采购收货,
            /// <summary>
            /// 经生产（含质检）环节后收货
            /// </summary>
            生产收货,
            /// <summary>
            /// 出库操作
            /// </summary>
            出库,
            /// <summary>
            /// 调拨操作
            /// </summary>
            调拨,
            /// <summary>
            /// 数量调整操作
            /// </summary>
            数量调整,
            /// <summary>
            /// 库位调整操作
            /// </summary>
            库位调整
        }

        /// <summary>
        /// 调拔状态
        /// </summary>
        public enum transferStatus
        {
            /// <summary>
            /// 拔转出仓
            /// </summary>
            BZCC = 1,
            /// <summary>
            /// 拔转在途
            /// </summary>
            BZZT,
            /// <summary>
            /// 拔转入仓
            /// </summary>
            BZRC
        }
    }
}
